package hello;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import tool.Spider;

/**
 * Created by 陈冬 on 2017/3/21.
 */
@Configuration
@EnableScheduling
public class SchedulingConfig {

    @Scheduled(cron = "0/10 * * * * ?")
    public static void scheduler(){
        Spider.spider();
    }
}
